home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 1 / QRZ Ham Radio Callsign Database - December 1993.iso / ucsd / packet / tcpip / net / netamsrc.arc / smtpcli.c < prev   
Encoding:
C/C++ Source or Header  |  1988-04-18  |  1.0 KB  |  37 lines

  1. /* smtpcli.c
  2.  *    Client routines for Simple Mail Transfer Protocol ala RFC821
  3.  *    A.D. Barksdale Garbee II, aka Bdale, N3EUA
  4.  *    Copyright 1986 Bdale Garbee, All Rights Reserved.
  5.  *    Permission granted for non-commercial copying and use, provided
  6.  *    this notice is retained.
  7.  *     Modified 14 June 1987 by P. Karn for symbolic target addresses,
  8.  *    also rebuilt locking mechanism
  9.  *    Limit on max simultaneous sessions, reuse of connections - 12/87 NN2Z
  10.  *    Added return of mail to sender as well as batching of commands 1/88 nn2z
  11.  */
  12. #include <stdio.h>
  13. #include "global.h"
  14. #ifdef MAC
  15. #include <io.h>
  16. #include <types.h>
  17. #else
  18. #include <fcntl.h>
  19. #endif
  20. #include <time.h>
  21. #ifdef UNIX
  22. #include <sys/types.h>
  23. #endif
  24. #include "netuser.h"
  25. #include "mbuf.h"
  26. #include "timer.h"
  27. #include "tcp.h"
  28. #include "smtp.h"
  29. #include "trace.h"
  30. #include "cmdparse.h"
  31.  
  32. extern int16 lport;            /* local port placeholder */
  33. extern int32 resolve();
  34. static struct timer smtpcli_t;
  35. int32 gateway;
  36.  
  37. #ifdef SMTPT